package com.agua.enturno.vista.componentes;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.link.Link;

public abstract class ConfirmLink extends Link<String> {

	private static final long serialVersionUID = 1L;

	public ConfirmLink(String id, String confirmationMessage) {
		super(id);
		add(AttributeModifier.replace("onclick", "return confirm('"+confirmationMessage+"');"));
	}

}
